const express = require('express')
const router = express.Router()
router.get('/get',(req,res)=>{
 const query = req.query    
  res.send (
    { 
            status: 0 ,
            msg:'get ok',
            data:query

    }
  )
})

router.post('/post',(req,res)=>{
const body = req.body
    res.send({
        status:0,
        msg:'post ok',
        data:body
    })
})
//delete路由
router.delete('/delete',(req,res)=>{
    res.send({
        status:0,
        msg:'delete ok',
    })
})
module.exports = router